text goes here section_title
| Command | Effect |
|---|---|
| pacman -Syuw | download only, do NOT install packages |
| pacman -Sw | Download specified package(s) as .tar.xz ball |
| pacman -F | Search for package containing file |
| yay -Rns $(pacman -Qtdq) | Remove orphans, their configuration(s) and unneeded dependencies |
| pacman -Qi | grep “Required By” | List owning package of a dependent package |
| expac -Q %M | Find all modified files in etc ( alternative pacman -Qkk |& grep Modification | grep /etc ) |
for more examples see https://wiki.archlinux.org/title/Pacman/Rosetta
pacman -Qqen > pkglist-${HOSTNAME}-repo.txtpacman -Qqem > pkglist-${HOSTNAME}-aur.txtpacman -S --needed - < pkglist-${HOSTNAME}-repo.txtyay -S --needed - < pkglist-${HOSTNAME}-aur.txtyay
sudo pacman -S --needed base-devel;sudo sed -i "s/#MAKEFLAGS=\"-j2\"/MAKEFLAGS=\"-j\${nproc}\"/" /etc/makepkg.confsudo sed -i 's/^OPTIONS=.*/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)/' /etc/makepkg.confcd /tmp
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si --noconfirm
yay -Y --devel --answerclean a --answerdiff n --removemake --cleanafter --saveUse yay -Y --gendb to generate a development package
database for *-git packages that were installed without yay. This
command should only be run once.
Source: https://github.com/Jguer/yay
sudo nano /etc/makepkg.conf
PKGDEST=/home/packagessudo systemctl --full --force edit repo.path
sudo systemctl --user --full --force edit repo.service
[Service]
Type=oneshot
ExecStartPre=/usr/bin/logger Start - Local AUR Repo Update
ExecStart=/bin/sh -c '/usr/bin/repo-add --nocolor --quiet --remove --prevent-downgrade /home/packages/bobs.db.tar.gz /home/packages/*.pkg.tar.zst'
ExecStartPost=/usr/bin/logger Done - Local AUR Repo Update
[Install]
WantedBy=multi-user.targetLast modified: Fri Nov 28 02:15:37 2025